package com.IntelligentCommunity.community.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author：ZHP
 * @Package：com.IntelligentCommunity.community.domain
 * @Project：IntelligentCommunity
 * @name：Door
 * @Date：2024/8/1 11:25
 * @Filename：Door
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RealDoor {
    /**
     * 门禁id
     */
    private Long id;
    /**
     * 门禁设备编号
     */
    private String facilitiesId;
    /**
     * 门禁小区 id
     */
    private Long districtId;
    /**
     * 门禁用户 id
     */
    private Long populationId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
